﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HongStone.Domain.ContractModel
{
    /// <summary>
    /// 合同表
    /// </summary>
    [Table("Thecontract")]
    public class Thecontract
    {
        /// <summary>
        /// 合同主键
        /// </summary>
        [Key]
        public int ContractId { get; set; }
        /// <summary>
        /// 合同编号
        /// </summary>
        public string ContractNo { get; set; }
        /// <summary>
        /// 合同名称
        /// </summary>
        public string ContractName { get; set; }
        /// <summary>
        /// 建设单位
        /// </summary>
        public string Constructionunit { get; set; }
        /// <summary>
        /// 结构形式
        /// </summary>
        public string structuralstyleId { get; set; }
        /// <summary>
        /// 工程负责人
        /// </summary>
        public int ProjectLeaderId { get; set; }
        /// <summary>
        /// 甲方负责人
        /// </summary>
        public string PersonA { get; set; }
        /// <summary>
        /// 原始合同额
        /// </summary>
        public string Originalamount { get; set; }
        /// <summary>
        /// 图纸套数
        /// </summary>
        public string Numberofdrawingsets { get; set; }
        /// <summary>
        /// 建筑分类
        /// </summary>
        public string ArchitectureId { get; set; }
        /// <summary>
        /// 电话01
        /// </summary>
        public string TelephoneA { get; set; }
        /// <summary>
        /// 电话02
        /// </summary>
        public string TelephoneB { get; set; }
        /// <summary>
        /// 实际合同额
        /// </summary>
        public decimal Actualamount { get; set; }
        /// <summary>
        /// 差旅次数
        /// </summary>
        public string Numberoftrips { get; set; }
        /// <summary>
        /// 合同分类
        /// </summary>
        public int ContractclassificationId { get; set; }
        /// <summary>
        /// 甲方类型
        /// </summary>
        public int FirstpartyId { get; set; }
        /// <summary>
        /// 建筑面积
        /// </summary>
        public string Builtuparea { get; set; }
        /// <summary>
        /// 子公司
        /// </summary>
        public int SubsidiaryId { get; set; }
        /// <summary>
        /// 工程地点
        /// </summary>
        public string Projectlocation { get; set; }
        /// <summary>
        /// 合同签约日期
        /// </summary>
        public DateTime Contractsigningdate { get; set; }
        /// <summary>
        /// 合同允许状态
        /// </summary>
        public string Contractallowedstatus { get; set; }
        /// <summary>
        /// 合同备注
        /// </summary>
        public string Contractremarks { get; set; }
        /// <summary>
        /// 客户外键
        /// </summary>
        public int CustomerID { get; set; }
        /// <summary>
        /// 合同文本编号
        /// </summary>
        public decimal ContractextNo { get; set; }
        public int CId { get; set; }

        /// <summary>
        /// 年目标额
        /// </summary>
        public int Zong { get; set; }

        /// <summary>
        /// 字典表外键
        /// </summary>
        public int DictionariesId { get; set; }
    }
}
